import request from '@/utils/request'

// 获取欠费统计
// export function statistics(query) {
//   return request({
//     url: '/system/salary/oweAmount/statistics',
//     method: 'post',
//     data: query
//   })
// }
export function salaryStatistics (query) {
    return request({
        url: '/system/salary/oweAmount/statistics',
        method: 'post',
        data: query
    })
}

// 按年月统计单位工资数据
export function listByDate (query) {
    return request({
        url: '/system/salary/listByDate',
        method: 'post',
        data: query
    })
}

// 按年月统计单位工资数据
export function listByDept (query) {
    return request({
        url: '/system/salary/listByDept',
        method: 'post',
        data: query
    })
}

// 获取工资管理欠费单位列表统计
export function statistics () {
    return request({
        url: '/system/salary/oweAmount/statistics',
        method: 'get'
    })
}

// 根据时间导出单位工资统计数据
export function exportByDate () {
    return request({
        url: '/system/salary/export/ByDate',
        method: 'get'
    })
}

// 导出单位工资统计数据
export function exportByDept () {
    return request({
        url: '/system/salary/export/ByDept',
        method: 'get'
    })
}

// 导出单位工资统计数据
export function exportDetail (query) {
    return request({
        url: '/system/salaryDetail/export',
        method: 'post',
        data: query,
    })
}

// 导入工资数据模板下载
export function exportTemplate () {
    return request({
        url: '/system/salary/importTemplate',
        method: 'get'
    })
}

// 查询工资详情
export function detailList (query) {
    return request({
        url: '/system/salaryDetail/list',
        method: 'post',
        data: query,
    })
}

// 删除工资数据
export function deleteSalary (query) {
    return request({
        url: '/system/salaryDetail/remove',
        method: 'get',
        params: query,
    })
}
// 查询工资详情
export function editSave (query) {
    return request({
        url: '/system/salaryDetail/edit',
        method: 'post',
        data: query,
    })
}

// 获取工资管理欠费单位列表统计
export function salaryOweAmount () {
    return request({
        url: '/system/salary/oweAmount/statistics',
        method: 'get'
    })
}





